Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for file encoding #121

Merged
merged 2 commits into from
Oct 1, 2016

Conversation

mrbean-bremen
Copy link
Member

- save file contents always as bytes
- consider encoding parameter in open() / io.open()
- use locale prefered encoding instead of utf-8 as default encoding
- added more tests with encoding (mostly similar to tests without
encoding)
@jmcgeheeiv jmcgeheeiv merged commit 0436915 into pytest-dev:master Oct 1, 2016
@jmcgeheeiv
Copy link
Contributor

Another fine contribution from @mrbean-bremen. Nice work.

@e18r
Copy link

e18r commented Oct 2, 2016

Great!! I'll give it a try. Thank you @mrbean-bremen

@mrbean-bremen mrbean-bremen deleted the file_encoding branch October 2, 2016 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Encoding error while opening file in binary mode
3 participants